FROM registry.cn-hangzhou.aliyuncs.com/xiaoyilin/java17:0.17-d131slim
LABEL author=xiaoyilin
LABEL email=406735078@qq.com
ARG N_V
ENV TZ=Asia/Shanghai
ADD nacos-server-${N_V}.tar.gz /usr/local/
WORKDIR /usr/local/nacos/bin
CMD ["bash","startup.sh","-m","standalone"]


# https://github.com/alibaba/nacos/releases
# https://nacos.io/docs/v3.0/quickstart/quick-start/
# tar -xvf nacos-server-3.0.3.tar.gz
# nacos/conf/application.properties
# tar -czvf nacos-server-3.0.3.tar.gz nacos/
# docker build --build-arg N_V=3.0.3 -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/nacos:3.0.3-d131slim .
# docker run --rm -it -p 8080:8080 registry.cn-hangzhou.aliyuncs.com/xiaoyilin/nacos:3.0.3-d131slim bash
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/nacos:3.0.3-d131slim

# nacos.core.auth.plugin.nacos.token.secret.key=VGhpc0lzTXlDdXN0b21TZWNyZXRLZXkwMTIzNDU2Nzg=
# nacos.core.auth.server.identity.key=xiaoyilin
# nacos.core.auth.server.identity.value=xiaoyilin

# bash startup.sh -m standalone
# tail -f ../logs/startup.log

docker run -p 8080:8080 registry.cn-hangzhou.aliyuncs.com/xiaoyilin/nacos:3.0.3-d131slim